package po;


import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * <p>  
 *  TbDynamic 动态消息表

 * </p>
 * @author  XieTao
 * @date 2020-04-10 
 */


public class TbDynamic  implements Serializable {


	/**
	 * 动态ID
	 */
	private String did;

	/**
	 * 发送人
	 */
	private String userId;

	/**
	 * 动态内容
	 */
	private String content;

	/**
	 * 开放级别
	 */
	private Integer openLevel;

	/**
	 * 是否删除
	 */
	private Integer isDelete;

	/**
	 * 发送日期
	 */
	private Date createTime;

	public String getDid() {
		return did;
	}

	public void setDid(String did) {
		this.did = did;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getOpenLevel() {
		return openLevel;
	}

	public void setOpenLevel(Integer openLevel) {
		this.openLevel = openLevel;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "TbDynamic{" +
				"did='" + did + '\'' +
				", userId='" + userId + '\'' +
				", content='" + content + '\'' +
				", openLevel=" + openLevel +
				", isDelete=" + isDelete +
				", createTime=" + createTime +
				'}';
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (!(o instanceof TbDynamic)) {
			return false;
		}
		TbDynamic tbDynamic = (TbDynamic) o;
		return Objects.equals(did, tbDynamic.did) &&
				Objects.equals(userId, tbDynamic.userId) &&
				Objects.equals(content, tbDynamic.content) &&
				Objects.equals(openLevel, tbDynamic.openLevel) &&
				Objects.equals(isDelete, tbDynamic.isDelete) &&
				Objects.equals(createTime, tbDynamic.createTime);
	}

	@Override
	public int hashCode() {
		return Objects.hash(did, userId, content, openLevel, isDelete, createTime);
	}
}
